package com.puti.doctor.service.impl;

import java.util.List;

import com.puti.common.core.domain.R;
import com.puti.doctor.domian.SeckillEvaluate;
import com.puti.doctor.mapper.SeckillEvaluateMapper;
import com.puti.doctor.service.ISeckillEvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 秒杀-评价 秒杀-评价Service业务层处理
 *
 * @author puti
 * @date 2021-04-25
 */
@Service
public class SeckillEvaluateServiceImpl implements ISeckillEvaluateService
{
    @Autowired
    private SeckillEvaluateMapper seckillEvaluateMapper;

    /**
     * 查询秒杀-评价 秒杀-评价
     *
     * @param evaluateId 秒杀-评价 秒杀-评价ID
     * @return 秒杀-评价 秒杀-评价
     */
    @Override
    public SeckillEvaluate selectSeckillEvaluateById(Long evaluateId)
    {
        return seckillEvaluateMapper.selectSeckillEvaluateById(evaluateId);
    }

    /**
     * 查询秒杀-评价 秒杀-评价列表
     *
     * @param seckillEvaluate 秒杀-评价 秒杀-评价
     * @return 秒杀-评价 秒杀-评价
     */
    @Override
    public List<SeckillEvaluate> selectSeckillEvaluateList(SeckillEvaluate seckillEvaluate)
    {
        return seckillEvaluateMapper.selectSeckillEvaluateList(seckillEvaluate);
    }

    @Override
    public List<SeckillEvaluate> selectallreviews(SeckillEvaluate seckillEvaluate) {
        return seckillEvaluateMapper.selectallreviews(seckillEvaluate);
    }

    /**
     * 新增秒杀-评价 秒杀-评价
     *
     * @param seckillEvaluate 秒杀-评价 秒杀-评价
     * @return 结果
     */
    @Override
    public int insertSeckillEvaluate(SeckillEvaluate seckillEvaluate)
    {
        return seckillEvaluateMapper.insertSeckillEvaluate(seckillEvaluate);
    }

    /**
     * 修改秒杀-评价 秒杀-评价
     *
     * @param seckillEvaluate 秒杀-评价 秒杀-评价
     * @return 结果
     */
    @Override
    public int updateSeckillEvaluate(SeckillEvaluate seckillEvaluate)
    {
        return seckillEvaluateMapper.updateSeckillEvaluate(seckillEvaluate);
    }

    /**
     * 批量删除秒杀-评价 秒杀-评价
     *
     * @param evaluateIds 需要删除的秒杀-评价 秒杀-评价ID
     * @return 结果
     */
    @Override
    public int deleteSeckillEvaluateByIds(Long[] evaluateIds)
    {
        return seckillEvaluateMapper.deleteSeckillEvaluateByIds(evaluateIds);
    }

    /**
     * 删除秒杀-评价 秒杀-评价信息
     *
     * @param evaluateId 秒杀-评价 秒杀-评价ID
     * @return 结果
     */
    @Override
    public int deleteSeckillEvaluateById(Long evaluateId)
    {
        return seckillEvaluateMapper.deleteSeckillEvaluateById(evaluateId);
    }

    @Override
    public List<SeckillEvaluate> selectSeckillEvaluate(long patientId, String goodsCodId) {
        return seckillEvaluateMapper.selectSeckillEvaluate(patientId,goodsCodId);
    }



}
